import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', {
    state: () => ({ count: 0,
     menuList: [
        {
            label: '产品',
            value: 'product',
            isShow: false
        },
        {
            label: '设置',
            value: 'setting',
            isShow: true
        },
        {
            label: '维护',
            value: 'system',
            isShow: false
        },
        {
            label: '清单管理',
            value: 'order',
            isShow: false
        },
        {
            label: '媒体',
            value: 'media',
            isShow: false
        },
        {
            label: 'IFrame',
            value: 'iframe',
            isShow: false
        },
        {
            label: '外系统',
            value: 'router',
            isShow: false
        },
        {
            label: '微服务',
            value: 'unit',
            isShow: false
        }
     ] }),
    actions: {
        increment() {
            this.count++
        },
    },
})
